#include<stdio.h>
#include<string.h>
int strStr(char* haystack, char* needle) {
	int num_h = strlen(haystack);
	int num_n = strlen(needle);
	char* h = haystack;
	char* n = needle;
	char* p;
	int i = 0;
	int a = 0;
	int z = 0;
	for (z = 0; z < num_h; z++)
	{
		p = h + z;
		for (i = 0; i < num_n; i++)
		{
			if (n[i] == p[i])
			{
				a = 1;
			}
			else
			{
				a = 0;
				break;
			}

		}
		if (a == 1)
		{
			return z;
		}
	}
	return -1;

}